<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Playbook - ScenarioStore</title>
    <link rel="stylesheet" type="text/css" href="https://playbook-ui.github.io/playbook-ios/all.css" media="all" />
</head>
<body>
    <header>
        <a href="https://playbook-ui.github.io/playbook-ios">
            <strong>
                Playbook
            </strong>
            <span>Documentation</span>
        </a>
    </header>

    <!--
    <form class="search">
        <input type="search" placeholder="Search" />
    </form>
    -->

    <nav>
        <div class="wrapper">
            <h2>On This Page</h2>
            <ol><li><a href="#initializers">Initializers</a><ul><li class="initializer"><a href="#scenariostore.init(kind:)">init(kind:​)</a></li></ul></li><li><a href="#properties">Properties</a><ul><li class="variable"><a href="#scenariostore.kind">kind</a></li><li class="variable"><a href="#scenariostore.scenarios">scenarios</a></li></ul></li><li><a href="#methods">Methods</a><ul><li class="function"><a href="#scenariostore.add(_:)">add(_:​)</a></li></ul></li></ol>
        </div>
    </nav>

    <main>
        <article>
            <h1>
    <small>Class</small>
    <code class="name">Scenario​Store</code>
</h1>

<div class="declaration">
<pre class="highlight"><code><html><body><span class="keyword">public</span> <span class="attribute">final</span> <span class="keyword">class</span> <span class="type">ScenarioStore</span>  </body></html></code></pre>
</div>
<div class="summary" role="doc-abstract">
    <p>The class for managing a set of scenarios identified by the arbitrary kind.</p>

</div>

    <section id="initializers">
        <h2>Initializers</h2>

        <div role="article" class="initializer" id="scenariostore.init(kind:)">
    <h3>
        <code><a href="#scenariostore.init(kind:)">init(kind:​)</a></code>
    </h3>
    <div class="declaration">
<pre class="highlight"><code><html><body><span class="keyword">public</span> <span class="keyword">init</span>(<span class="variable">kind</span>: <a href="https://playbook-ui.github.io/playbook-ios/ScenarioKind"><span class="type">ScenarioKind</span></a>)  </body></html></code></pre>
</div>
<div class="summary" role="doc-abstract">
    <p>Initialize a new store with given kind.</p>

</div>
<h4>Parameters</h4>

<table class="parameters">
  <thead hidden>
  <tr>
      <th>Name</th>
      <th>Type</th>
      <th>Description</th>
  </tr>
  </thead>
  <tbody>
    <tr>
    <th>kind</th>
    <td><code class="type">Scenario​Kind</code></td>
    <td><p>A unique identifier of the secenarios managed by this instance.</p>
</td>
</tr>
  </tbody>
</table>
</div>
    </section>
    <section id="properties">
        <h2>Properties</h2>

        <div role="article" class="variable" id="scenariostore.kind">
    <h3>
        <code><a href="#scenariostore.kind">kind</a></code>
    </h3>
    <div class="declaration">
<pre class="highlight"><code><html><body><span class="keyword">public</span> <span class="keyword">let</span> <span class="variable">kind</span>: <a href="https://playbook-ui.github.io/playbook-ios/ScenarioKind"><span class="type">ScenarioKind</span></a></body></html></code></pre>
</div>
<div class="summary" role="doc-abstract">
    <p>A unique identifier of the secenarios managed by this instance.</p>

</div>
</div>
<div role="article" class="variable" id="scenariostore.scenarios">
    <h3>
        <code><a href="#scenariostore.scenarios">scenarios</a></code>
    </h3>
    <div class="declaration">
<pre class="highlight"><code><html><body><span class="keyword">public</span> <span class="keyword">var</span> <span class="variable">scenarios</span>: [<a href="https://playbook-ui.github.io/playbook-ios/Scenario"><span class="type">Scenario</span></a>]  </body></html></code></pre>
</div>
<div class="summary" role="doc-abstract">
    <p>The set of scenarios managed by this store.</p>

</div>
</div>
    </section>
    <section id="methods">
        <h2>Methods</h2>

        <div role="article" class="function" id="scenariostore.add(_:)">
    <h3>
        <code><a href="#scenariostore.add(_:)">add(_:​)</a></code>
    </h3>
    <div class="declaration">
<pre class="highlight"><code><html><body><span class="attribute">@</span><span class="attribute">discardableResult</span>
    <span class="keyword">public</span> <span class="keyword">func</span> <span class="function">add</span>(<span class="keyword">_</span> <span class="variable">scenario</span>: <a href="https://playbook-ui.github.io/playbook-ios/Scenario"><span class="type">Scenario</span></a>) -&gt; <span class="keyword">Self</span>  </body></html></code></pre>
</div>
<div class="summary" role="doc-abstract">
    <p>Adds a scenario to this store instance.</p>

</div>
<h4>Parameters</h4>

<table class="parameters">
  <thead hidden>
  <tr>
      <th>Name</th>
      <th>Type</th>
      <th>Description</th>
  </tr>
  </thead>
  <tbody>
    <tr>
    <th>scenario</th>
    <td><code class="type">Scenario</code></td>
    <td><p>The scenario to be added to this instance.</p>
</td>
</tr>
  </tbody>
</table>
  <h4>Returns</h4>
  <p>A instance of <code>self</code>.</p>

</div>
    </section>



        </article>
    </main>

    <footer>
        <p>
    Generated on <time datetime="2021-08-25T19:01:53+0900">August 25, 2021</time> using <a href="https://github.com/SwiftDocOrg/swift-doc">swift-doc</a> <span class="version">1.0.0-rc.1</span>.
</p>
    </footer>
</body>
</html>
